package com.chongbangbang.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author TP
 * @since 2022-03-19 15:23:55
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("blog_type")
@ApiModel(value = "BlogType对象", description = "")
public class BlogType implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("blog_type主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("文章类型名称")
    @TableField("`name`")
    private String name;

    @ApiModelProperty("文章类型的父ID")
    @TableField("pid")
    private Integer pid;

    @ApiModelProperty("blog的类型")
    @TableField("`type`")
    private String type;

    @ApiModelProperty("文章描述")
    @TableField("description")
    private String description;

    @ApiModelProperty("创建时间")
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty("更新时间")
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty("逻辑删除")
    @TableField("`delete`")
    @TableLogic
    private Boolean delete;


}
